package cn.edu.scnu.springbootcinema.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("users")
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private Integer userId;
    private String username;
    @TableId(type = IdType.AUTO)
    private String email;
    private String password;
    private Date createdAt;
    private Date updatedAt;
    private Date lastLogin;
    private Integer vipDuration;
}